<?php

return [
  // Settings that are NOT overwritable from .env

  /*
    |--------------------------------------------------------------------------
    | Supported locales
    |--------------------------------------------------------------------------
    */
  'supported_locales' => [
    'it_IT',    // Italian
    'en_US',    // American English
    'en_GB',    // British English
  ],

  /*
    |--------------------------------------------------------------------------
    | Formats (specific for supported locale)
    |--------------------------------------------------------------------------
    */
  'it_IT' => [
    'date' => 'd/m/Y',
    'time' => 'h:i:s',
    'datetime' => 'd/m/Y h:i:s',
  ],
  'en_US' => [
    'date' => 'm/d/Y',
    'time' => 'h:i:s',
    'datetime' => 'M d, Y h:i:s a',
  ],
  'en_GB' => [
    'date' => 'd/m/Y',
    'time' => 'h:i:s',
    'datetime' => 'd M Y h:i:s',
  ],

  /*
    |--------------------------------------------------------------------------
    | Settings (specific for Picture Type: photo for Person, logo for Company)
    |--------------------------------------------------------------------------
    */

  'photo' => [
    'path' => 'public/pictures/photos',
    'type_id' => 12,
  ],
  'logo' => [
    'path' => 'public/pictures/logos',
    'type_id' => 13,
  ],

  // Settings that ARE overwritable from .env

  /*
    |--------------------------------------------------------------------------
    | Number of days to expire token
    |--------------------------------------------------------------------------
    */
  'days_token_expire' => env('DAYS_TOKEN_EXPIRE', 15),

  /*
    |--------------------------------------------------------------------------
    | Number of days to expire refresh token
    |--------------------------------------------------------------------------
    */
  'days_refresh_token_expire' => env('DAYS_REFRESH_TOKEN_EXPIRE', 30),

  /*
    |--------------------------------------------------------------------------
    | Number of records for each page (index method of base Controller)
    |--------------------------------------------------------------------------
    */

  'index_limit' => env('INDEX_LIMIT', 2),

  /*
    |--------------------------------------------------------------------------
    | Flag to filter for active records only (index method of base Controller)
    |--------------------------------------------------------------------------
    */

  'filter_active' => env('FILTER_ACTIVE', true),

  /*
    |--------------------------------------------------------------------------
    | Flag to send confirmation email when registering
    |--------------------------------------------------------------------------
    */

  'registered_user_confirmation_email' => env('REGISTERED_USER_CONFIRMATION_EMAIL', true),

  /*
    |--------------------------------------------------------------------------
    | Role for registered user
    |--------------------------------------------------------------------------
    */

  'registered_user_role' => env('REGISTERED_USER_ROLE', 'reader'),

  /*
    |--------------------------------------------------------------------------
    | Role for created user
    |--------------------------------------------------------------------------
    */

  'created_user_role' => env('CREATED_USER_ROLE', 'reader'),
];
